package ClassData;

import ClassData.Visitor.IVisitor;
import ClassData.Visitor.IVisitorElement;

public class ConstantPoolClass_Info extends ConstantPoolInfo implements IVisitorElement {

	private short NameIndex;

	public  ConstantPoolClass_Info(short newIndex) {
		NameIndex =	newIndex;
	}

	public void SetNameIndex(short newIndex) {
		NameIndex = newIndex;
	}

	public short GetNameIndex() {
		return(NameIndex);
	}

	/**
	 * returns type of this constant pool entry
	 */
	public int getType() {
		return(CONSTANT_Class);
	}
	
	@Override
	public void receive_Visitor(IVisitor visitor) {
		visitor.visit_ConstantPoolClass_Info(this);
	}
	
}
